public class Main {
    public static void main(String[] args) {
        //eaglea
        Bird bird = new Eagle(new UnableSwim(),new FreeFly());
        bird.display();

        System.out.println("=================================");

        //penguin
        Bird bird1 = new Penguin(new AbleSwim(),new UnableFly());
        bird1.display();

        System.out.println("=================================");

        //piegon
        Bird bird2 = new Piegon(new UnableSwim(),new FreeFly());
        bird2.display();
    }
}
